<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>生成器交互</title>
</head>
<body>
	<script>
		function* njg(ac){
			const imp=yield('hel'+ac);
			console.info(imp)
			yield('yoshi('+imp+')'+ac);
		}
			const nji=njg("skulk");
			const r1=nji.next();
			console.log(r1.value);
			const r2=nji.next('hanzo');
			console.log(r2.value);

	</script>
</body>
</html>